<?php
class BackendAction extends Action
{
	public function __construct($context)
	{
		parent::__construct($context);
	}
	
	public function beforeExecute()
	{
		$layout = 'Do' == substr($this->context->uri['action'], 0, 2) ? 'result' : 'frontpage';
		$this->view->layout = $layout;		
	}
}